﻿//namespace cs_basic_16
//{
//    internal class Program
//    {
//        static void Main(string[] args)
//        {
//            //RaceCar raceCar = new RaceCar();
//            //raceCar.Owner = "张三";
//            //raceCar.GetType
//            Car car = new Car();
//            //Console.WriteLine(car.Owner);
//            car.ShowOwner();
//        }
//    }
//    class Vehicle
//    {
//        public string Owner {  get; set; }
//        public Vehicle()
//        {
//            this.Owner = "N/A";
//        }
//    }
//    class Car:Vehicle
//    {
//        public Car()
//        {
//            this.Owner = "Car Owner";
//        }
//        public void ShowOwner()
//        {
//            Console.WriteLine(base.Owner);
//            Console.WriteLine(this.Owner);

//        }
//    }
//    class RaceCar : Car
//    {

//    }
//}

using MyLib;

namespace HelloAccess
{
    class Program
    {
        static void Main(string[] args)
        {
            Vehicle vehicle = new Vehicle();
            vehicle.Owner = "GZ";
            Console.WriteLine(vehicle.Owner);
        }
    }
}